package com.benefm.multipar.pad.http;

import com.benefm.multipar.pad.model.HomeResult;
import com.benefm.multipar.pad.model.LoginInfo;

import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

public interface ApiService {

    @POST("/channel/channelLogin/admin/login")
    Call<HttpResult<LoginInfo>> login(@Body Map<String, String> params);

    /**
     * 获取在线用户
     */
    @GET("/message/actual/userDevices")
    Call<HttpResult<HomeResult>> onlineDevices(@QueryMap Map<String, String> params);


}
